#include <iostream>
using namespace std;

void test0(){
    int num = 100;
    int & ref = num;//声明ref时进行了初始化（绑定）
    //int & ref2; //error
    cout << num << endl;
    cout << ref << endl;
    cout << &num << endl;
    cout << &ref << endl;
}

int main(int argc, char * argv[])
{
    test0();
    return 0;
}

